package com.codeplay.service;

import com.codeplay.entity.User;
import java.util.List;
import java.util.Set;

public interface UserService {
    User createUser(User user, Set<String> roleNames);
    User updateUser(Long id, User user);
    void deleteUser(Long id);
    User getUserById(Long id);
    User getUserByUsername(String username);
    User getUserByEmail(String email);
    List<User> getAllUsers();
    void changePassword(Long id, String oldPassword, String newPassword);
    void updateStatus(Long id, Integer status);
    void assignRoles(Long id, Set<String> roleNames);
    void removeRoles(Long id, Set<String> roleNames);
    boolean verifyPassword(String rawPassword, String encodedPassword);
    void updateLastLoginTime(Long id);
} 